package com.powernode.ssm.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.powernode.ssm.pojo.vo.*;
import com.powernode.ssm.pojo.po.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@DS("mysql")
@Repository
public interface UserDao extends BaseMapper<H5UserinfoPo> {

     Page<H5UserinfoPo> queryUser(Page<?> page, @Param("item") LoginVo vo);

     int checkUserId(@Param("item") LoginVo vo);

     int checkUserIdAndPassWord(@Param("item") LoginVo vo);

     H5UserinfoPo queryUserById(@Param("userid") String userId,@Param("appcode") String appcode);

}
